package com.chen.jwtbase.system.repository;

import com.chen.jwtbase.system.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @ClassName UserRepository
 * @Description
 * @Author Mr-CHEN
 * @Date 2019/9/29 0029 10:05
 * @Version V1.0
 **/

public interface UserRepository extends JpaRepository<User,Integer> {
    Optional<User> findByUsername(String username);
}